package com.shiguiwu.mogu.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shiguiwu.mogu.entity.Banner;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @description: banner dao
 * @author: stone
 * @date: Created by 2020/12/22 23:53
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.mogu.dao
 */
@Mapper
public interface BannerDao extends BaseMapper<Banner> {
    @Select("SELECT * FROM `banner` LIMIT #{limit} OFFSET #{offset}")
    List<Banner> page(@Param("limit") Integer limit, @Param("offset") Integer offset);
}
